//
//  UILabel+Extension.swift
//  MyWB
//
//  Created by 李成万 on 16/6/27.
//  Copyright © 2016年 李成万. All rights reserved.
//

import UIKit

extension UILabel{
    convenience init(messageColor:UIColor,textFont:CGFloat,maxWidth:CGFloat = 0){
        self.init()
        self.textColor = messageColor
        self.font = UIFont.systemFontOfSize(textFont)
        if maxWidth > 0{
            self.preferredMaxLayoutWidth = maxWidth
            self.numberOfLines = 0
            
        }
    }

}
